package com.ht.safe.entity;

import javax.persistence.CascadeType;
import javax.persistence.OneToMany;
import java.util.List;

/**
 * 主控制器
 *
 * @author: 薄成文 13-8-2 上午10:42
 * To change this template use File | Settings | File Templates.
 */
public class MasterController {
    private String name;
    private String type;
    private String ip;
    private Integer port;
    private Boolean used;

    @OneToMany(cascade = CascadeType.REMOVE, mappedBy = "masterController")
    private List<DoorController> doorControllers;
}
